package com.engine.cn.base.streams;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 模拟嵌套对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    /**
     * 模拟嵌套对象中的某个属性集
     */
    private List<String> items;

    /**
     * 模拟价格
     */
    private BigDecimal price;

    public Order(List<String> items) {
        this.items = items;
    }

    public Order(BigDecimal price) {
        this.price = price;
    }
}
